package com.lxy.demo.log;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

//非核心类 - 日志模块 - C同学
@Component
@Aspect
@Order(2)
public class LoggerTest {

    @After("execution(* com.lxy.demo.manager.CCBManagerImpl.*(..))")
    public void log(){
        System.out.println("LoggerTest...log()...记录操作日志...");
    }

    @AfterReturning(value = "execution(* com.lxy.demo.manager.CCBManagerImpl.*(..))",returning = "name")
    public void afterReturning(String name){
        System.out.println("返回通知..."+name);
    }
}
